package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户关注
 * </p>
 *
 * @author Lbx
 * @since 2021-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdUserRelation对象", description = "用户关注")
public class JdUserRelation extends Model<JdUserRelation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "被关注用户id-主播/参赛选手")
    private Integer relationUser;

    @ApiModelProperty(value = "用户id")
    private Integer sourceUser;

    @ApiModelProperty(value = "用户角色 1主播2参赛员")
    private Integer role;

    @ApiModelProperty(value = "关注时间")
    @TableField(fill = FieldFill.INSERT)
    private Date ct;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
